import Index from '../pages/user/Index.vue'
import Team from '../pages/team/Team.vue'
import User from '../pages/user/User.vue'
import Search from '../pages/user/Search.vue'
import UserEdit from '../pages/user/UserEdit.vue'
import SearchResult from '../pages/user/SearchResult.vue'
import UserLogin from '../pages/user/UserLogin.vue'
import AddTeam from '../pages/team/AddTeam.vue'
import UpdateTeam from '../pages/team/UpdateTeam.vue'
import UserJoinTeam from '../pages/team/UserJoinTeam.vue'
import UserCreateTeam from '../pages/team/UserCreateTeam.vue'
import UserPage from '../pages/user/UserPage.vue'
import UserRegister from '../pages/user/userRegister.vue'



const routes = [
  { path: '/',component: Index },
  { path: '/team', title:'队伍',component: Team },
  { path: '/user', title:'用户',component: User },
  { path: '/search', title:'搜索',component: Search },
  { path: '/user/edit', title:'用户编辑',component: UserEdit },
  { path: '/search/result', title:'查找结果',component: SearchResult },
  { path: '/user/login', title:'用户登录',component: UserLogin },
  { path: '/team/add', title:'添加队伍',component: AddTeam },
  { path: '/team/update', title:'更新队伍',component: UpdateTeam },
  { path: '/team/my/join', title:'用户加入队伍',component: UserJoinTeam },
  { path: '/team/my/create', title:'用户创建队伍',component: UserCreateTeam },
  { path: '/user/page', title:'用户主页',component: UserPage },
  { path: '/user/register', title:'用户注册',component: UserRegister },

]

export default routes;